package com.example.mrzhou.lvmm.model;

import com.example.mrzhou.lvmm.model.impl.DesModelImpl;
import com.example.mrzhou.lvmm.model.impl.HomeModelImpl;
import com.example.mrzhou.lvmm.model.impl.SurModelImpl;
import com.example.mrzhou.lvmm.model.impl.TMModelImpl;

/**
 * Created by Mr.zhou on 2016/10/27.
 */

public class ModelFactory {

    private static ISurModel iSurModel;

    public static ISurModel getISurModel() {
        if (iSurModel == null) {
            iSurModel = new SurModelImpl();
        }
        return iSurModel;
    }

    private static IHomeModel iHomeModel;

    public static IHomeModel getiHomeModel() {
        if (iHomeModel == null) {
            iHomeModel = new HomeModelImpl();
        }
        return iHomeModel;
    }

    private static ITMModel itmModel;

    public static ITMModel getITMModel() {
        if (itmModel == null) {
            itmModel = new TMModelImpl();
        }
        return itmModel;
    }

    private static IDesModel iDesModel;

    public static IDesModel getiDesModel() {
        if (iDesModel == null) {
            iDesModel = new DesModelImpl();
        }
        return iDesModel;
    }
}
